/**
 * 获取配置单个条目
 * @Author   邬天美
 * @DateTime 2017-12-09
 * @param    {[type]}   obj [description]
 * @param    {[type]}   val [description]
 * @return   {[type]}       [description]
 */
export const getConfigItem = (obj, val) => {
    if (!obj) return {};
    return obj.filter(item => item.value == val)[0] || {};
};
/**
 * @description 後端數組格式化成对象并取出最终值
 * @author 曹清华
 * @param    {[type]}   params [传入的数组]
 * @return   {[type]}   格式化之后的对象
 */
function arrayFormatObj(formatArray, targetSource) {
    let tempObj = {};
    //把数组格式化成对象
    formatArray.map(item => {
        tempObj[item.value] = item.label;
    });
    //在对象里面取值
    return tempObj[targetSource] ? tempObj[targetSource] : targetSource;
}

const SELECT_DATA = {

    isLoadOpt:[
        {label:'不加载', value:0},
        {label:'加载',   value:1},
    ],
    assetTypeOpt:[
        {label:'产品编码',   value:'产品编码'},
        {label:'服务名',     value:'服务名'},
    ],
    zaPreUltronOpt:[
        {label:'za-pre-ultron-preloan',  value:'za-pre-ultron-preloan'},
        {label:'za-pre-ultron-loan',     value:'za-pre-ultron-loan'},
        {label:'za-pre-ultron-repay',    value:'za-pre-ultron-repay'},
        {label:'za-pre-ultron-fin',      value:'za-pre-ultron-fin'},
    ],
    // 处理器类型
    handlerTypeOpt:[
        {label:"reader",       value:0},
        {label:"processor",    value:1},
        {label:"writer",       value:2},
    ],

    additionalTypeOpt:[
        {label:"身份证正面",       value:"SFZZM"},
        {label:"身份证反面",       value:"SFZFM"},
        {label:"手持身份证照片",   value:"SCSFZZP"},
        {label:"在职证明",         value:"ZZZM"},
        {label:"财力证明",         value:"CLZM"},
        {label:"其他",             value:"QT"},
    ],

    operationOpt:[
        {
            label: '新进件',
            value: 1
        },
        {
            label: '挂起中',
            value: 2
        },
        {
            label: '挂起结束',
            value: 3
        },
         {
            label: '补件中',
            value: 4
        },

        {
            label: '补件完成',
            value: 5
        },
        {
            label: '退回',
            value: 6
        },
        {
            label: '退回重审',
            value: 7
        },
    ],

    operatorOpt:[
        {
            label: '全部审核员',
            value: 1
        },
        {
            label: '一级审核员',
            value: 2
        },
        {
            label: '二级审核员',
            value: 3
        },
    ],
    finalResultOpt:[
        {
            label: '通过',
            value: 1
        },
        {
            label: '拒绝',
            value: 2
        },
    ],

    EXPORT_ROWS: 10000, //导出数据的条数
    //数据字典类型
    DICTIONARY_TYPE: [
        {
            label: '场景贷拒绝码',
            value: 'CashLoanRejectCode'
        },
        {
            label: '消费分期拒绝码',
            value: 'VirCardRejectCode'
        },
        {
            label: '额度处理建议',
            value: 'AmountAuditAdvice'
        },
        {
            label: '订单处理建议',
            value: 'OrderAuditAdvice'
        },
        {
            label: '补件原因',
            value: 'EvidenceReason'
        },
        {
            label: '挂起原因',
            value: 'HangUpReason'
        },
        {
            label: '挂起时间',
            value: 'HangUpTime'
        } ,
        {
            label: '落人工码',
            value: 'ManualReasonCode'
        } ,
        {
            label: '自动分案类型',
            value: "AutoAssginType"
        } ,

    ],
    //产品类型
	PRODUCT_TYPE: [
        {
            value: 0,
            label: '未知'
        },
		{
			value: 1,
			label: '场景贷'
		},
		{
			value: 2,
			label: '消费分期'
		}
	],
    //岗位信息
    OCUPATION: [
		{
			label: '一级审批A岗',
			value: 1
		},
		{
			label: '一级审批B岗',
			value: 2
        },
		{
			label: '一级审批C岗',
			value: 3
		},
		{
			label: '一级审批D岗',
			value: 4
		}

    ],
     //岗位级别
     OCUPATION_LEVEL: [
		{
			label: '一级',
			value: 1
		},
		{
			label: '二级',
			value: 2
        }

	],
    applyTypeOpt: [
        { value: 1, label: "授信审批", },
        { value: 2, label: "提现审批", },
        { value: 3, label: "反欺诈审批", },
    ],

    auditMaterial: [
        { label: '身份证', value: 0 },
        { label: '手持照片', value: 1 },
        { label: '工作证明', value: 2 },
        { label: '其它', value: 3 },
    ],

    verificationResults: [{
            label: '通过',
            value: 0
        },
        {
            label: '未通过',
            value: 1
        },
        {
            label: '其它',
            value: 2
        }
    ],
    // 隔离类型
    insulateType: [{
            label: '客户隔离',
            value: 'cust'
        },
        {
            label: '账单/借款单隔离',
            value: 'loanNo'
        }
    ],
    // 变量类型
    VARTYPE: [{
            label: '短信',
            value: 1
        },
        {
            label: 'IVR',
            value: 2
        }
    ],
    OVERDUE_LEVEL: [{
            value: '1',
            label: 'M1'
        },
        {
            value: '2',
            label: 'M2'
        },
        {
            value: '3',
            label: 'M3'
        },
        {
            value: '4',
            label: 'M4'
        },
        {
            value: '5',
            label: 'M5'
        },
        {
            value: '6',
            label: 'M6'
        },
        {
            value: '7',
            label: 'M7'
        },
        {
            value: '8',
            label: 'M8'
        },
        {
            value: '9',
            label: 'M9'
        },
        {
            value: '10',
            label: 'M10'
        },
        {
            value: '11',
            label: 'M11'
        },
        {
            value: '12',
            label: 'M12'
        }
    ],
    //数据来源
    DATA_WAY: [{
            value: 'SFTP',
            label: '文件服务器'
        },
        {
            value: 'HAND',
            label: '手工导入'
        },
        {
            value: 'API',
            label: '接口'
        }
    ],
    //联系人来源
    RELATION_SOURCE: [{
            value: 'SYSTEM',
            label: '系统'
        },
        {
            value: 'HAND',
            label: '手工'
        }
    ],
    //部门状态
    DEPT_STATUS: [{
            value: 1,
            label: '生效'
        },
        {
            value: 0,
            label: '失效'
        }
    ],
    //机构状态
    INSTITUTION_STATUS: [{
            value: 1,
            label: '生效'
        },
        {
            value: 0,
            label: '失效'
        }
    ],
    //岗位状态
    DUTY_STATUS: [{
            value: 1,
            label: '生效'
        },
        {
            value: 0,
            label: '失效'
        }
    ],
    STRATEGY_STATUS: [{
            value: 'Y',
            label: '生效'
        },
        {
            value: 'N',
            label: '失效'
        }
    ],
    CERT_TYPE: [
        //证件类型
        {
            value: '1',
            label: '身份证'
        },
        {
            value: '2',
            label: '护照'
        },
        {
            value: '3',
            label: '出生证'
        },
        {
            value: '4',
            label: '驾照'
        },
        {
            value: '5',
            label: '军官证'
        },
        {
            value: '6',
            label: '统一社会信用代码'
        },
        {
            value: '7',
            label: '其他'
        }
    ],
    SEX: [
        //性别
        {
            value: 'M',
            label: '男'
        },
        {
            value: 'F',
            label: '女'
        }
    ],
    CUST_STATUS: [
        //客户状态
        {
            value: '1',
            label: '正常'
        },
        {
            value: '2',
            label: '失联'
        },
        {
            value: '3',
            label: '坐牢'
        },
        {
            value: '4',
            label: '死亡'
        },
        {
            value: '5',
            label: '其它'
        }
    ],
    EDUCATION_LEVEL: [
        //学历
        {
            value:"10"
            ,label:"研究生"
        },
        {
            value:"20"
            ,label:"大学本科"
        },
        {
            value:"30"
            ,label:"大专"
        },
        {
            value:"40"
            ,label:"中专"
        },
        {
            value:"50"
            ,label:"技术学校"
        },
        {
            value:"60"
            ,label:"高中"
        },
        {
            value:"70"
            ,label:"初中"
        },
        {
            value:"80"
            ,label:"小学"
        },
        {
            value:"90"
            ,label:"文盲或半文盲"
        },
        {
            value:"99"
            ,label:"未知"
        },
    ],
    //机构属性
    INSTITUTION_PROP: [{
            value: 'client',
            label: '催收机构'
        },
        {
            value: 'master',
            label: '委托方'
        },
        {
            value: 'platform',
            label: '平台方'
        }
    ],

    //机构类型
    INSTITUTION_TYPE: [{
            value: 'RGCS',
            label: '人工催收'
        },
        {
            value: 'ZNCS',
            label: '智能催收'
        },
        {
            value: 'SFCS',
            label: '司法催收'
        },
        {
            value: 'WFCS',
            label: '外访催收'
        }
    ],
    //策略类型
    STRATEGY_TYPE: [{
            value: 'sms',
            label: '短信分案策略'
        },
        {
            value: 'ivr',
            label: 'IVR分案策略'
        },
        {
            value: 'out',
            label: '机构分案策略'
        }
    ],
    PRODUCT_MGR: {
        PRODUCT_STATUS: [{
                value: 1,
                label: '生效'
            },
            {
                value: 0,
                label: '失效'
            }
        ]
    },
    //用户信息
    USERINFO: {
        user_type: [{
                value: 1,
                label: '内部用户'
            },
            {
                value: 2,
                label: '外部用户'
            }
        ]
    },
    //委外周期单位
    local_assignPeriodUnits: [{
            value: 'D',
            label: '天'
        },
        {
            value: 'M',
            label: '月'
        },
        {
            value: 'C',
            label: '固定日-本月'
        },
        {
            value: 'N',
            label: '固定日-次月'
        }
    ],//催收管理
	COLLECTION_MGR: {
		//部门案件状态
		CASE_STATUS: [
			{
				label: '全部',
				value: ''
			},
			{
				label: '未分配',
				value: 'unassign'
			},
			{
				label: '已分配',
				value: 'assigned'
			},
			{
				label: '已结案',
				value: 'settled'
			},
			{
				label: '到期未收回',
				value: 'recycled'
			}
		],
		//我的案件标记
		MY_CASE_STATUS: [
			{
				label: '未处理',
				value: 'N'
			},
			{
				label: '处理中',
				value: 'Y'
			},
			{
				label: '已结案',
				value: 'settled'
			}
		],
		//案件标记
		CASE_TAG: [
			{
				label: '无色',
				value: 'NO'
			},
			{
				label: '红色',
				value: 'RED'
			},
			{
				label: '黄色',
				value: 'YELLOW'
			},
			{
				label: '蓝色',
				value: 'BLUE'
			},
			{
				label: '绿色',
				value: 'GREEN'
			}
		],
		//联系结果
		CONTACT_RESULT: [
			{
				value: '1',
				label: '无'
			},
			{
				value: '2',
				label: '接通'
			},
			{
				value: '3',
				label: '拒接'
			},
			{
				value: '4',
				label: '无法接通'
			},
			{
				value: '5',
				label: '通话中'
			},
			{
				value: '6',
				label: '无人接听'
			},
			{
				value: '7',
				label: '关机'
			},
			{
				value: '8',
				label: '停机'
			},
			{
				value: '9',
				label: '空号'
			},
			{
				value: '10',
				label: '其他'
			}
		],
		//催收结果
		COLLECT_RESULT: [
			{
				value: '1',
				label: '无'
			},
			{
				value: '2',
				label: '有承诺还款'
			},
			{
				value: '3',
				label: '协商还款'
			},
			{
				value: '4',
				label: '还款意愿差'
			},
			{
				value: '5',
				label: '中介代办'
			},
			{
				value: '6',
				label: '失联'
			},
			{
				value: '7',
				label: '死亡'
			},
			{
				value: '8',
				label: '转告'
			},
			{
				value: '9',
				label: '代还'
			}
		]
	},
	//报表中心
	REPORTS: {
		//风险代理费报表
		RISK_AGENT: {
			//是否结佣
			IS_SETTLEMENT: [
				{
					value: '0',
					label: '未结'
				},
				{
					value: '1',
					label: '已结'
				}
			]
		}
	},
    MSG_TYPE:[//消息类型
        {
            value:"1"
            ,label:"未读"
        },
        {
            value:"2"
            ,label:"已读"
        },
    ],
    CASE_DETAIL:{
    	TAB_LEFT:[
            {
                label:"申请信息"
                ,value:"1"
            },
	    	{
	    		label:"行为信息"
	    		,value:"4"
	    	},
	    	{
	    		label:"征信信息"
	    		,value:"2"
	    	},
	    	{
	    		label:"附件信息"
	    		,value:"3"
	    	},
	    ],
    	TAB_RIGHT:[
	    	{
	    		label:"影像资料"
	    		,value:"1"
	    	},
	    	{
	    		label:"内部核查"
	    		,value:"2"
	    	},
	    	{
	    		label:"外部核查"
	    		,value:"3"
	    	},
	    	{
	    		label:"电话核查"
	    		,value:"4"
	    	},
	    	{
	    		label:"审核结论"
	    		,value:"5"
	    	},
	    ],
        EXTRA_FILE_SOURCE:[//文件类型
            {
                value:"0"
                ,label:"前置申请时提交"
            },
            {
                value:"1"
                ,label:"人审系统上传"
            },
        ],
        MARRIAGE:[
            {
                value:"0"
                ,label:"已婚"
            },
            {
                value:"1"
                ,label:"未婚"
            },
            {
                value:"2"
                ,label:"离异"
            },
            {
                value:"3"
                ,label:"丧偶"
            },
            {
                value:"9"
                ,label:"其他"
            },
        ],
        RELATION_TYPE:[
            {
                value:"家属"
                ,label:"家属"
            },
            {
                value:"朋友"
                ,label:"朋友"
            },
            {
                value:"同事"
                ,label:"同事"
            },
            {
                value:"其它"
                ,label:"其它"
            },
        ],
        VIP_FLAG:[//是否vip
            {
                value:"N"
                ,label:"否"
            },
            {
                value:"Y"
                ,label:"是"
            },
        ],
        YN:[//是否
           {
                value:"N"
                ,label:"否"
            },
            {
                value:"Y"
                ,label:"是"
            },
        ],
        FILE_OBJECT:[//资料对象
            {
                label:"身份证"
                ,value:"101001"
            },
            {
                label:"手持照片"
                ,value:"101002"
            },
            {
                label:"工作证明"
                ,value:"101003"
            },
            {
                label:"其他"
                ,value:"101004"
            },

        ],
        CITY_LEVEL:[//城市级别
            {
                value:"A"
                ,label:"一线"
            },
            {
                value:"B"
                ,label:"二线"
            },
            {
                value:"C"
                ,label:"三线"
            },
            {
                value:"D"
                ,label:"四线及以下"
            },
        ],
        CHECK_RESULT_P_UP:[//审核结果
            {
                label:"通过"
                ,value:"PASS"
            },
            {
                label:"未通过"
                ,value:"NOTPASS"
            },

        ],
        CHECK_RESULT_P_UP_O:[//审核结果
            {
                label:"通过"
                ,value:"PASS"
            },
            {
                label:"未通过"
                ,value:"NOTPASS"
            },
            {
                label:"其他"
                ,value:"OTHER"
            },

        ],
        CHECK_RESULT_H_UH_P_UP_O:[//审核结果
            {
                label:"有"
                ,value:"YES"
            },
            {
                label:"无"
                ,value:"NO"
            },
            {
                label:"通过"
                ,value:"PASS"
            },
            {
                label:"未通过"
                ,value:"NOTPASS"
            },
            // {
            //     label:"其他"
            //     ,value:"OTHER"
            // },

        ],
        AUTHORIZATION_OBJECT:[//授权对象
            {
                value:"102401"
                ,label:"公积金"
            },
            {
                value:"102402"
                ,label:"通讯录"
            },
            {
                value:"102403"
                ,label:"人行报告"
            },

        ],
        ALIPAY_OBJECT:[
            {
                label:"申请人"
                ,value:"103101"
            },
            {
                label:"联系人1"
                ,value:"103102"
            },
            {
                label:"联系人2"
                ,value:"103103"
            },
            {
                label:"其他"
                ,value:"103104"
            },
        ],
        WECHAT_OBJECT:[
            {
                label:"申请人"
                ,value:"103201"
            },
            {
                label:"联系人1"
                ,value:"103202"
            },
            {
                label:"联系人2"
                ,value:"103203"
            },
            {
                label:"其他"
                ,value:"103204"
            },

        ],
        WEB_OBJECT:[
            {
                label:"申请人"
                ,value:"103301"
            },
            {
                label:"联系人1"
                ,value:"103302"
            },
            {
                label:"联系人2"
                ,value:"103303"
            },
            {
                label:"其他"
                ,value:"103304"
            },

        ],
        MAP_OBJECT:[
            {
                label:"街景地图"
                ,value:"103401"
            },
            {
                label:"百度地图"
                ,value:"103402"
            },

        ],
        CHECK_RESULT_SHIMING:[
            {
                label:"实名一致"
                ,value:"SMYZ"
            },
            {
                label:"实名不一致"
                ,value:"SMBYZ"
            },
            {
                label:"无实名信息"
                ,value:"WSMXX"
            },

        ],
        CHECK_RESULT_ZHENGYI:[
            {
                label:"正常"
                ,value:"ZC"
            },
            {
                label:"异常"
                ,value:"YC"
            },
        ],
        CHECK_RESULT_YIZHI:[
            {
                label:"一致"
                ,value:"YZ"
            },
            {
                label:"不一致"
                ,value:"BYZ"
            },

        ],
        LOAN_STATUS:[
            {
                value:"1"
                ,label:"处理中"
            },
            {
                value:"2"
                ,label:"贷款失败"
            },
            {
                value:"3"
                ,label:"撤销"
            },
            {
                value:"4"
                ,label:"放款中"
            },
            {
                value:"5"
                ,label:"放款成功"
            },
            {
                value:"6"
                ,label:"放款失败"
            },
            {
                value:"7"
                ,label:"已结清"
            }
        ],
        OCCUPATION_TYPE:[//职业类型
            {
                value:"1"
                ,label:"政府部门"
            },
            {
                value:"2"
                ,label:"教科文"
            },
            {
                value:"3"
                ,label:"金融"
            },
            {
                value:"4"
                ,label:"商贸"
            },
            {
                value:"5"
                ,label:"房地产"
            },
            {
                value:"6"
                ,label:"制造业"
            },
            {
                value:"7"
                ,label:"自由职业"
            },
            {
                value:"8"
                ,label:"其他"
            },
        ],
        SOCIAL_STATUS:[//社保状态
            {
                value:"1"
                ,label:"参保"
            },
            {
                value:"2"
                ,label:"暂停"
            },
            {
                value:"3"
                ,label:"冻结"
            },
        ],
        DIAN_HE:[//电核对象/电核来源
            {
                label:"申请人"
                ,value:"1"
                ,children:[
                    {
                        label:"银行手机"
                        ,value:"11"
                    },
                    {
                        label:"人行手机"
                        ,value:"12"
                    },
                    {
                        label:"系统手机"
                        ,value:"13"
                    },
                    {
                        label:"其他"
                        ,value:"14"
                    },
                ]
            }
            ,{
                label:"联系人"
                ,value:"2"
                ,children:[
                    {
                        label:"系统联系人1"
                        ,value:"21"
                    },

                    {
                        label:"系统联系人2"
                        ,value:"22"
                    },

                    {
                        label:"通讯录联系人手机"
                        ,value:"23"
                    },

                    {
                        label:"其他"
                        ,value:"24"
                    },
                ]
            }
            ,{
                label:"单位电话"
                ,value:"3"
                ,children:[
                    {
                        label:"系统单电"
                        ,value:"31"
                    },
                    {
                        label:"人行单电"
                        ,value:"32"
                    },
                    {
                        label:"114单电"
                        ,value:"33"
                    },
                    {
                        label:"外网单电"
                        ,value:"34"
                    },
                    {
                        label:"工商网单电"
                        ,value:"35"
                    },
                    {
                        label:"其他"
                        ,value:"36"
                    },
                ]
            }
            ,{
                label:"住宅电话"
                ,value:"4"
                ,children:[
                    {
                        label:"人行宅电"
                        ,value:"41"
                    },
                    {
                        label:"系统宅电"
                        ,value:"42"
                    },
                    {
                        label:"其他"
                        ,value:"43"
                    },
                ]
            }
            ,{
                label:"其他"
                ,value:"5"
            }
        ],
        CALL_STATUS:[//拔打状态
            {
                value:"NOAS"
                ,label:"NOAS-无人应答"
            },
            {
                value:"OFF"
                ,label:"OFF-停机/关机"
            },
            {
                value:"NON-EXIST"
                ,label:"NON-EXIST-空号"
            },
            {
                value:"BUSY"
                ,label:"BUSY-忙音"
            },
            {
                value:"DEF"
                ,label:"DEF-盲音"
            },
            {
                value:"OTHER"
                ,label:"其他"
            },
        ],
        CALL_TIMES:[//拔打次数
            {
                value:"1CALL"
                ,label:"1CALL"
            },
            {
                value:"2CALL"
                ,label:"2CALL"
            },
            {
                value:"3CALL"
                ,label:"3CALL"
            },
            {
                value:"3CALL+"
                ,label:"3CALL+"
            },
        ],
        CHECK_RESULT_1:[//一级审核员审核结果
            {
                value:"1"
                ,label:"通过"
            },
            {
                value:"2"
                ,label:"拒绝"
            },
            {
                value:"4"
                ,label:"补件"
            },
            {
                value:"3"
                ,label:" 挂起"
            }
        ],
        CHECK_RESULT_2:[//二级审核员审核结果
            {
                value:"1"
                ,label:"通过"
            },
            {
                value:"2"
                ,label:"拒绝"
            },
            {
                value:"5"
                ,label:"退回"
            },
        ],
        CREDIT_LIMIT:[//授信额度类型
            {
                value:"1"
                ,label:"系统默认额度"
            },
            {
                value:"2"
                ,label:"其他 "
            },
        ],
        BACK_REASON:[//退回原因
            {
                label:"操作"
                ,value:"1"
            },
            {
                label:"流程"
                ,value:"2"
            },
            {
                label:"风险"
                ,value:"3"
            },
            {
                label:"结论"
                ,value:"4"
            },
            {
                label:"其他"
                ,value:"5"
            },
        ],
        MAIN_REASON:[//主原因
            {
                value:"T01"
                ,label:"正常通过"
            },
            {
                value:"T02"
                ,label:"违例通过"
            },
        ],
        HANG_TIME:[//挂起时间
            {
                label:"1小时"
                ,value:"1"
            },
            {
                label:"2小时"
                ,value:"2"
            },
            {
                label:"3小时"
                ,value:"3"
            },
            {
                label:"4小时"
                ,value:"4"
            },
            {
                label:"5小时"
                ,value:"5"
            },

        ],
        HANG_REASON:[//挂起原因
            {
                label:"申请人电核时段"
                ,value:"SUSPEND001"
            },
            {
                label:"联系人电核时段"
                ,value:"SUSPEND002"
            },
            {
                label:"单位电核时段"
                ,value:"SUSPEND003"
            },
            {
                label:"其他"
                ,value:"QT"
            },

        ],
        PATCH_REASON:[//补件原因
            {
                label:"身份证正面"
                ,value:"SFZZM"
            },
            {
                label:"身份证反面"
                ,value:"SFZFM"
            },
            {
                label:"手持身份证照片"
                ,value:"SCSFZZP"
            },
            {
                label:"在职证明"
                ,value:"ZZZM"
            },
            {
                label:"财力证明"
                ,value:"CLZM"
            },
            {
                label:"其他"
                ,value:"QT"
            },

        ],
        LIMIT_DEAL_ADVISE:[//额度处理建议
            {
                label:"额度冻结，取消发货"
                ,value:"Advice001"
            },
            {
                label:"额度暂不处理，取消发货"
                ,value:"Advice002"
            },
            {
                label:"额度暂不冻结，取消发货，再次消费必落人工"
                ,value:"Advice003"
            },
            {
                label:"审核通过，订单发货"
                ,value:"Advice004"
            },
            {
                label:"视情况而定"
                ,value:"Advice005"
            },

        ],
        IS_FAN_QI_ZHA:[//是否反欺诈
            {
                label:"是"
                ,value:"Y"
            },
            {
                label:"否"
                ,value:"N"
            }
        ],
        IS_HIGH_AMOUNT:[//是否高额度
            {
                label:"是"
                ,value:"Y"
            },
            {
                label:"否"
                ,value:"N"
            }
        ],
        ORDER_DEAL_ADVISE:[//订单处理建议
            {
                label:"取消发货"
                ,value:"QXFH"
            },
            {
                label:"正常发货"
                ,value:"ZCFH"
            },
        ],
        XIAN_JIN_DAI_JU_JUE_MA:[//场景贷拒绝码
            {
                label:"高风险客群（D01）"
                ,value:"D01"
                ,children:[
                    {
                        value:"D0101"
                        ,label:"伪冒"
                    },
                    {
                        value:"D0102"
                        ,label:"代办"
                    },
                    {
                        value:"D0103"
                        ,label:"黑名单"
                    },
                    {
                        value:"D0104"
                        ,label:"团队欺诈"
                    },
                    {
                        value:"D0105"
                        ,label:"同行中介"
                    },
                ]
            },
            {
                label:"提供虚假资料/信息 （D02）"
                ,value:"D02"
                ,children:[
                    {
                        value:"D0201"
                        ,label:"虚假身份证明"
                    },
                    {
                        value:"D0202"
                        ,label:"虚假联系人"
                    },
                    {
                        value:"D0203"
                        ,label:"虚假其他资料或信息"
                    },
                    {
                        value:"D0204"
                        ,label:"核实信息矛盾"
                    },
                ]
            },
            {
                label:"负面信息（D03）"
                ,value:"D03"
                ,children:[
                    {
                        value:"D0301"
                        ,label:"企业负面信息"
                    },
                    {
                        value:"D0302"
                        ,label:"申请人负面信息"
                    },
                    {
                        value:"D0303"
                        ,label:"联系人负面信息"
                    },
                    {
                        value:"D0304"
                        ,label:"其他负面信息"
                    },
                ]
            },
            {
                label:"无有效身份证明（D04）"
                ,value:"D04"
                ,children:[
                    {
                        value:"D0401"
                        ,label:"身份证过有效期"
                    },
                    {
                        value:"D0402"
                        ,label:"身份证异常"
                    },
                    {
                        value:"D0403"
                        ,label:"身份证不完整"
                    },
                ]
            },
            {
                label:"非目标客户（D05）"
                ,value:"D05"
                ,children:[
                    {
                        value:"D0501"
                        ,label:"禁入行业"
                    },
                    {
                        value:"D0502"
                        ,label:"禁入职业"
                    },
                    {
                        value:"D0503"
                        ,label:"非本人申请"
                    },
                    {
                        value:"D0504"
                        ,label:"公积金不符合准入要求"
                    },
                    {
                        value:"D0505"
                        ,label:"年龄不符合准入要求"
                    },
                    {
                        value:"D0506"
                        ,label:"工作年限不符合准入要求"
                    },
                ]
            },
            {
                label:"不良信用记录（D06）"
                ,value:"D06"
                ,children:[
                    {
                        value:"D0601"
                        ,label:"征信空白"
                    },
                    {
                        value:"D0602"
                        ,label:"历史逾期记录"
                    },
                    {
                        value:"D0603"
                        ,label:"征信其他负面记录"
                    },
                    {
                        value:"D0604"
                        ,label:"当前逾期记录"
                    },
                    {
                        value:"D0605"
                        ,label:"近期无还款表现"
                    },
                ]
            },
            {
                label:"取消申请（D07）"
                ,value:"D07"
            },
            {
                label:"无法联系  （D08）"
                ,value:"D08"
                ,children:[
                    {
                        value:"D0801"
                        ,label:"企业无法联系"
                    },
                    {
                        value:"D0802"
                        ,label:"申请人号码无应答"
                    },
                    {
                        value:"D0803"
                        ,label:"申请人号码异常"
                    },
                    {
                        value:"D0804"
                        ,label:"联系人号码无应答"
                    },
                    {
                        value:"D0805"
                        ,label:"联系人号码异常"
                    },
                ]
            },
            {
                label:"申请材料/信息不足 （D09）"
                ,value:"D09"
                ,children:[
                    {
                        value:"D0901"
                        ,label:"无有效手持身份证照片"
                    },
                    {
                        value:"D0902"
                        ,label:"无有效工作证明"
                    },
                    {
                        value:"D0903"
                        ,label:"无有效联系人"
                    },
                ]
            },
            {
                label:"重复申请   （D10）"
                ,value:"D10"
            },
            {
                label:"不配合电核    （D11）"
                ,value:"D11"
            },
            {
                label:"其他（D99）"
                ,value:"D99"
            },
     ],
     XU_NI_KA_JU_JUE_MA:[//消费分期拒绝码
        {
            label:"冒名（D00）"
            ,value:"D00"
            ,children:[
                {
                    value:"D0000"
                    ,label:"被他人冒用身份信息"
                },
            ]
        },
        {
            label:"核身异常（D01）"
            ,value:"D01"
            ,children:[
                {
                    value:"D0101"
                    ,label:"非本人申请"
                },
                {
                    value:"D0102"
                    ,label:"他人代为申请"
                },
                {
                    value:"D0103"
                    ,label:"中介代为申请"
                },
                {
                    value:"D0104"
                    ,label:"核身不过"
                },
                {
                    value:"D0105"
                    ,label:"其他类型非本人申请"
                },
            ]
        },
        {
            label:"疑似虚假订单（D02）"
            ,value:"D02"
            ,children:[
                {
                    value:"D0201"
                    ,label:"本次订单信息核实异常"
                },
                {
                    value:"D0202"
                    ,label:"历史订单信息核实异常"
                },
                {
                    value:"D0203"
                    ,label:"本次和历史订单均可视异常"
                },
                {
                    value:"D0204"
                    ,label:"核实信息矛盾"
                },
            ]
        },
        {
            label:"确认虚假订单（D03）"
            ,value:"D03"
            ,children:[
                {
                    value:"D0301"
                    ,label:"否认本次消费订单"
                },
                {
                    value:"D0302"
                    ,label:"否认历史消费订单"
                },
                {
                    value:"D0303"
                    ,label:"否认历史和本次订单"
                },
            ]
        },
        {
            label:"负面信息（D04）"
            ,value:"D04"
            ,children:[
                {
                    value:"D0401"
                    ,label:"外部信息异常"
                },
                {
                    value:"D0402"
                    ,label:"同行销售"
                },
                {
                    value:"D0403"
                    ,label:"其他渠道获取负面信息"
                },
            ]
        },
        {
            label:"申请人信用风险（D05）"
            ,value:"D05"
            ,children:[
                {
                    value:"D0501"
                    ,label:"人行信用异常"
                },
                {
                    value:"D0502"
                    ,label:"其他渠道了解客户信用异常"
                },
            ]
        },
        {
            label:"取消申请（D06）"
            ,value:"D06"
        },
        {
            label:"无法联系（D07）"
            ,value:"D07"
            ,children:[
                {
                    value:"D0701"
                    ,label:"申请人无法联系"
                },
                {
                    value:"D0702"
                    ,label:"收货人无法联系"
                },
                {
                    value:"D0703"
                    ,label:"其他重要电话无法联系"
                },
                {
                    value:"D0704"
                    ,label:"申请人停机/关机/空号"
                },
                {
                    value:"D0705"
                    ,label:"收货人停机/关机/空号"
                },
                {
                    value:"D0706"
                    ,label:"其他重要电话停机/关机/空号"
                },
            ]
        },
        {
            label:"不配合电核（D08）"
            ,value:"D08"
        },
        {
            label:"其他（D99）"
            ,value:"D99"
        },

     ]
    },
    //格式化-证件类型
    FORMAT_CERT_TYPE: function(params) {
        return arrayFormatObj(this.CERT_TYPE, params);
    },
    //格式化-客户状态
    FORMAT_CUST_STATUS: function(params) {
        return arrayFormatObj(this.CUST_STATUS, params);
    },
    //格式化-学历
    format_education_level: function(params) {
        return arrayFormatObj(this.EDUCATION_LEVEL, params);
    },
    //格式化-婚姻状况
    format_marital_status: function(params) {
        return arrayFormatObj(this.MARITAL_STATUS, params);
    },
    //格式化-关系
    format_relation_type: function(params) {
        return arrayFormatObj(this.RELATION_TYPE, params);
    },
    //格式化-来源
    format_data_source: {
        SYSTEM: '系统',
        HAND: '手工'
    },
    //格式化-系统来源
    format_data_way: function(params) {
        return arrayFormatObj(this.DATA_WAY, params);
    },
    //格式化-案件状态  ；doing 催收中 ；settled 已结案； stoped 已停催
    format_case_status: {
        wait: '待催收',
        doing: '催收中',
        settled: '已结案',
        stoped: '已停催 '
    },
    //通知方式 1sms 2ivr 3call
    local_handle_type: [{
            value: '1',
            label: '短信'
        },
        {
            value: '2',
            label: 'IVR'
        }
    ],
    //通知状态 1发送成功、联系上 2发送失败、联系不上 3受理成功 4受理失败
    local_send_status: [{
            value: '1',
            label: '发送成功'
        },
        {
            value: '2',
            label: '发送失败'
        },
        {
            value: '3',
            label: '受理成功'
        },
        {
            value: '4',
            label: '受理失败'
        }
    ],
    //格式化--性别
    format_sex: function(params) {
        return arrayFormatObj(this.SEX, params);
    },
    //格式化--是否首次逾期
    format_first_overdue: {
        Y: '是',
        N: '否'
    },

    //是否委外：N 否、Y 是
    local_outed: [{
            value: 'Y',
            label: '是'
        },
        {
            value: 'N',
            label: '否'
        }
    ],
    //格式化--是否委外：N 否、Y 是
    format_outed: function(params) {
        return arrayFormatObj(this.local_outed, params);
    },
    //格式化--案件状态
    format_status: {
        unassign: '未分配',
        assigned: '已分配',
        settled: '已结案',
        recycled: '到期未收回'
    },
    //格式化--催收结果
    format_contact_result: {
        1: '无',
        2: '有承诺还款',
        3: '协商还款',
        4: '还款意愿差',
        5: '中介代办',
        6: '失联',
        7: '死亡',
        8: '转告',
        9: '代还'
    },
    //格式化--催收结果
    format_cs_result: {
        1: '无',
        2: '有承诺还款',
        3: '协商还款',
        4: '还款意愿差',
        5: '中介代办',
        6: '失联',
        7: '死亡',
        8: '转告',
        9: '代还',
        10: '其他'
    },

    //格式化--催收结果 1接通 2未接通 3失联 4呼叫中 5正在通话 6已挂掉 7异常话单
    format_refer_status: {
        1: '接通',
        2: '未接通',
        3: '失联',
        4: '呼叫中',
        5: '正在通话',
        6: '已挂掉',
        7: '异常话单'
    },
    //格式化--停催类型
    /**
     * no("no", "无操作")
     * recalled("recalled", "召回")
     * insulated("insulated", "隔离")
     */
    format_process_flag: {
        "no": '无操作',
        "recalled": '召回',
        "insulated": '隔离'
    },

    //格式化催收行动
    format_handle_type: {
        1: '短信',
        2: 'IVR',
        3: '电话'
    },
    //格式化步长 D天 M月 Y年
    format_period_step: {
        D: '天',
        M: '月',
        Y: '年'
    },
    //逾期阶段
    LOCAL_OVERDUELEVEL: LOCAL_OVERDUELEVEL(12)
};
//生成逾期阶段
function LOCAL_OVERDUELEVEL(num) {
    let temp = [];
    for (let i = 1; i <= num; i++) {
        let obj = {};
        obj.value = i;
        obj.label = 'M' + i;
        temp.push(obj);
    }
    return temp;
}
export default SELECT_DATA;